<html>
<body>
<p>Reports that built-in matchers in <b>specs2</b> could be used.</p>
<p><b>Example:</b></p>
<pre><code>
  class TestSpec extends Specification { def is = s2"""
    This is a spec
    opt
      should contain 1                                  $e1
                                                        """
    def e1 = {

      val opt = Some(1)

      opt must equalTo (Some(1))
    }
  }
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
  class TestSpec extends Specification { def is = s2"""
    This is a spec
    opt
      should contain 1                                  $e1
                                                        """
    def e1 = {

      val opt = Some(1)

      opt must beSome(1)
    }
  }
</code></pre>
<!-- tooltip end -->
</body>
</html>